package com.violet.detective.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.violet.detective.entity.Workorder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.violet.detective.search.WorkorderSearchParameter;

import java.util.List;

/**
* @author 21145
* @description 针对表【WorkOrder】的数据库操作Service
* @createDate 2023-09-04 21:42:54
*/
public interface WorkorderService extends IService<Workorder> {
    boolean addWorkOrder(Workorder workorder);
    boolean editWorkOrder(Workorder updatedWorkorder);
    boolean deleteWorkOrder(Integer id);
    Workorder getWorkOrderById(Integer id);
    List<Workorder> searchWorkOrders(WorkorderSearchParameter searchParameter);
    Page<Workorder> searchWorkOrders(WorkorderSearchParameter searchParameter, int pageNum, int pageSize);
    List<Workorder> findAllWorkOrders();
    Page<Workorder> findAllWorkOrders(int pageNum, int pageSize);

}
